<?php

/**
 * index.php: main page for the bookstore application
 *
 * @author vbolshov
 */

include dirname(__FILE__) . '/../setup.php';

use bs\Book;
use bs\Author;
use bs\Renderer;

$layout = Renderer::getLayout('index.php');
$layout->title = 'Bookstore';

$layout->book_list = Book::findAll();
$layout->author_list = Author::findAll();

$layout->render();